home *** CD-ROM | disk | FTP | other *** search
/ Disc Station 20 / Disc Station Vol 20.ISO / Drivers / Iodata / Pg3dat / pg3d210.exe / DISK.EXE / WINNT35 / OEMSETUP.INF next >
INI File  |  1996-06-13  |  18KB  |  582 lines

  1. ;-----------------------------------------------------------------------
  2. ; OPTION TYPE
  3. ; -----------
  4. ; This identifies the Option type we are dealing with.  The different
  5. ; possible types are:
  6. ;
  7. ; COMPUTER, VIDEO, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
  8. ;-----------------------------------------------------------------------
  9.  
  10. [Identification]
  11.     OptionType = VIDEO
  12.  
  13. ;-----------------------------------------------------------------------
  14. ; LANGUAGES SUPPORTED
  15. ; -------------------
  16. ;
  17. ; The languages supported by the OEM INF, For every language supported
  18. ; we need to have a separate text section for every displayable text
  19. ; section.
  20. ;
  21. ;-----------------------------------------------------------------------
  22.  
  23. [LanguagesSupported]
  24.     ENG
  25.  
  26. ;-----------------------------------------------------------------------
  27. ; OPTION LIST
  28. ; -----------
  29. ; This section lists the OEM Option key names.  These keys are locale
  30. ; independent and used to represent the option in a locale independent
  31. ; manner.
  32. ;
  33. ;-----------------------------------------------------------------------
  34.  
  35. ;
  36. ; Option list order: Option = Miniport driver, BitsPerPel, XResolution, YResolution, VRefresh, Interlaced
  37. ;
  38. ; If you don't want to create a VRefresh or Interlaced value under the service
  39. ; parameters then use the value ""
  40. ;
  41.  
  42. [Options]
  43.     "I-O DATA GA-PG3Dx/PCI"        = pg3d,    8, 640,  480   , 60 , 0
  44.  
  45. ;
  46. ; This maps detected options into the options we support
  47. ;
  48. ; Format: DetectedOption = MappedOption
  49. ;
  50.  
  51. [MapOfOptions]
  52.     "VGA"                       = "VGA"
  53.     "COMPAQ AVGA"               = "VGA"
  54.     "COMPAQ AGB"                = "VGA"
  55.     "8514 MONITOR UNKNOWN"      = "VGA"
  56.     "8514 VGA MONITOR"          = "VGA"
  57.     "8514 8503 MONO"            = "VGA"
  58.     "8514 8514 GAD"             = "VGA"
  59.     "GENOA VGA"                 = "VGA"
  60.     "VIDEO7 VGA DRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  61.     "VIDEO7 VGA VRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  62.     "TRIDENT VGA"               = "VGA"
  63.     "TRIDENT VGA 9100"          = "VGA"
  64.     "PARADISE VGA"              = "VGA"
  65.     "PARADISE VGA PROM"         = "VGA"
  66.     "PARADISE VGA CHIP 1F"      = "VGA"
  67.     "ATI VGA"                   = "VGA"
  68.     "ATI VGA WONDDER3"          = "VGA"
  69.     "TSENGLAB VGA ET3000"       = "VGA"
  70.     "TSENGLAB VGA ET4000"       = "TSENGLAB VGA ET4000 640x480x4x60"
  71.     "CIRRUS VGA"                = "VGA"
  72.     "CIRRUS VGA 610-620 REVC"   = "VGA"
  73.     "XGA"                       = "XGA 640x480x8"
  74.     "DELL DGX"                  = "DELL DGX 640x480x8"
  75.     "S3 VGA"                    = "S3 VGA 640x480x8"
  76.     "PRODESIGNER II"            = "TSENGLAB VGA ET4000 640x480x4x60"
  77.  
  78.  
  79. ;
  80. ; Order of the information:
  81. ;
  82. ; Port driver = Type, Group, ErrorControl, Tag, InstalledDisplay, VgaCompatible( 0/1 ), EventMessageFile, TypesSupported
  83. ;
  84.  
  85. [MiniportDrivers]
  86.     pg3d   = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, 11,  {pg3d}, 0 , %SystemRoot%\System32\IoLogMsg.dll , 7
  87.  
  88.  
  89. ;-----------------------------------------------------------------------
  90. ; OPTION TEXT SECTION
  91. ; -------------------
  92. ; These are text strings used to identify the option to the user.  There
  93. ; are separate sections for each language supported.  The format of the
  94. ; section name is "OptionsText" concatenated with the Language represented
  95. ; by the section.
  96. ;
  97. ;-----------------------------------------------------------------------
  98.  
  99. [OptionsTextENG]
  100.     "I-O DATA GA-PG3Dx/PCI"    = "I-O DATA GA-PG3Dx/PCI"
  101.  
  102.  
  103.  
  104. ;---------------------------------------------------------------------------
  105. ; 1. Identify
  106. ;
  107. ; DESCRIPTION:   To verify that this INF deals with the same type of options
  108. ;                as we are choosing currently.
  109. ;
  110. ; INPUT:         None
  111. ;
  112. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  113. ;                $($R1): Option Type (COMPUTER ...)
  114. ;                $($R2): Diskette description
  115. ;---------------------------------------------------------------------------
  116.  
  117. [Identify]
  118.     ;
  119.     ;
  120.     read-syms Identification
  121.  
  122.     set Status     = STATUS_SUCCESSFUL
  123.     set Identifier = $(OptionType)
  124.     set Media      = #("Source Media Descriptions", 1, 1)
  125.  
  126.     Return $(Status) $(Identifier) $(Media)
  127.  
  128.  
  129.  
  130. ;------------------------------------------------------------------------
  131. ; 2. ReturnOptions:
  132. ;
  133. ; DESCRIPTION:   To return the option list supported by this INF and the
  134. ;                localised text list representing the options.
  135. ;
  136. ;
  137. ; INPUT:         $($0):  Language used. ( ENG | FRN | ... )
  138. ;
  139. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL |
  140. ;                                STATUS_NOLANGUAGE
  141. ;                                STATUS_FAILED
  142. ;
  143. ;                $($R1): Option List
  144. ;                $($R2): Option Text List
  145. ;------------------------------------------------------------------------
  146.  
  147. [ReturnOptions]
  148.     ;
  149.     ;
  150.     set Status        = STATUS_FAILED
  151.     set OptionList     = {}
  152.     set OptionTextList = {}
  153.  
  154.     ;
  155.     ; Check if the language requested is supported
  156.     ;
  157.     set LanguageList = ^(LanguagesSupported, 1)
  158.     Ifcontains(i) $($0) in $(LanguageList)
  159.     goto returnoptions
  160.     else
  161.     set Status = STATUS_NOLANGUAGE
  162.     goto finish_ReturnOptions
  163.     endif
  164.  
  165.     ;
  166.     ; form a list of all the options and another of the text representing
  167.     ;
  168.  
  169. returnoptions = +
  170.     set OptionList     = ^(Options, 0)
  171.     set OptionTextList = ^(OptionsText$($0), 1)
  172.     set Status         = STATUS_SUCCESSFUL
  173.  
  174. finish_ReturnOptions = +
  175.     Return $(Status) $(OptionList) $(OptionTextList)
  176.  
  177.  
  178.  
  179. ;---------------------------------------------------------------------------
  180. ; MapToSupportedOption
  181. ;
  182. ; DESCRIPTION:   To map a hardware detected option to the NT Supported
  183. ;                option which represents it.
  184. ;
  185. ; INPUT:         $($0): Option
  186. ;
  187. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  188. ;                $($R1): Mapped Option
  189. ;
  190. ;---------------------------------------------------------------------------
  191.  
  192. [MapToSupportedOption]
  193.     ;
  194.     set Status = STATUS_FAILED
  195.     set MappedOption = $($0)
  196.  
  197.     ;
  198.     ; If the option is one we can support using one of our standard options
  199.     ; then map it to the standard option else map it to the default option
  200.     ; which is VGA.
  201.     ;
  202.  
  203.     set OptionList = ^(MapOfOptions, 0)
  204.     ifcontains $($0) in $(OptionList)
  205.     set MappedOption = #(MapOfOptions, $($0), 1)
  206.     else
  207.     set MappedOption = "VGA"
  208.     endif
  209.  
  210.     set Status = STATUS_SUCCESSFUL
  211.     Return $(Status) $(MappedOption)
  212.  
  213.  
  214.  
  215. [ServicesEntry]
  216.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  217.  
  218.  
  219. ;
  220. ; InstallOption:
  221. ;
  222. ; FUNCTION:  To copy files representing Options
  223. ;            To configure the installed option
  224. ;            To update the registry for the installed option
  225. ;
  226. ; INPUT:     $($0):  Language to use
  227. ;            $($1):  OptionID to install
  228. ;            $($2):  SourceDirectory
  229. ;            $($3):  AddCopy  (YES | NO)
  230. ;            $($4):  DoCopy   (YES | NO)
  231. ;            $($5):  DoConfig (YES | NO)
  232. ;
  233. ; OUTPUT:    $($R0): STATUS: STATUS_SUCCESSFUL |
  234. ;                            STATUS_NOLANGUAGE |
  235. ;                            STATUS_USERCANCEL |
  236. ;                            STATUS_FAILED
  237. ;
  238.  
  239. [InstallOption]
  240.  
  241.     ;
  242.     ; Set default values for
  243.     ;
  244.     set Status       = STATUS_FAILED
  245.     set DrivesToFree = {}
  246.  
  247.     ;
  248.     ; extract parameters
  249.     ;
  250.     set Option   = $($1)
  251.     set SrcDir   = $($2)
  252.     set AddCopy  = $($3)
  253.     set DoCopy   = $($4)
  254.     set DoConfig = $($5)
  255.  
  256.     ;
  257.     ; Check if the language requested is supported
  258.     ;
  259.     set LanguageList = ^(LanguagesSupported, 1)
  260.     Ifcontains(i) $($0) in $(LanguageList)
  261.     else
  262.     set Status = STATUS_NOLANGUAGE
  263.     goto finish_InstallOption
  264.     endif
  265.     read-syms Strings$($0)
  266.  
  267.     ;
  268.     ; check to see if Option is supported.
  269.     ;
  270.  
  271.     set OptionList = ^(Options, 0)
  272.     ifcontains $(Option) in $(OptionList)
  273.     else
  274.     goto finish_InstallOption
  275.     endif
  276.     set OptionList = ""
  277.  
  278.     ;
  279.     ; Option has been defined already
  280.     ;
  281.     set Mi